﻿<h1>@Html.TitleForPage(T("Create a New Account").ToString())</h1>
<p>@T("Use the form below to create a new account.")</p>
<p>@T("Passwords are required to be a minimum of {0} characters in length.", ViewData["PasswordLength"])</p>
@Html.ValidationSummary(T("Account creation was unsuccessful. Please correct the errors and try again.").ToString(), new { @class = "text-error" })
@using (Html.BeginFormAntiForgeryPost()) { 
    <fieldset>
        <legend>@T("Account Information")</legend>
        <div>
            <label for="username">@T("Username")</label>
            <div class="input-prepend">
                <span class="add-on"><i class="icon-user"></i></span>
                @Html.TextBox("username")
            </div>
            @Html.ValidationMessage("username", new { @class = "text-error" })
        </div>
        <div>
            <label for="email">@T("Email")</label>
            <div class="input-prepend">
                <span class="add-on"><i class="icon-envelope"></i></span>
                @Html.TextBox("email")
            </div>
            @Html.ValidationMessage("email", new { @class = "text-error" })
        </div>
        <div>
            <label for="password">@T("Password")</label>
            <div class="input-prepend">
                <span class="add-on"><i class="icon-lock"></i></span>
                @Html.Password("password")
            </div>
            @Html.ValidationMessage("password", new { @class = "text-error" })
        </div>
        <div>
            <label for="confirmPassword">@T("Confirm password")</label>
            <div class="input-prepend">
                <span class="add-on"><i class="icon-lock"></i></span>
                @Html.Password("confirmPassword")
            </div>
            @Html.ValidationMessage("confirmPassword", new { @class = "text-error" })
        </div>
        <div class="form-actions">
            <button class="btn btn-primary" type="submit">@T("Register")</button>
        </div>
    </fieldset>
} 